from game.gamesrc.objects.object import MyObject
from game.gamesrc.utils import myutils

class Thing(MyObject):
    """
    This is the base class for "thing" objects.  Inherit from this
    to create objects in the game (weapons, clothes, food...).
    """
    def at_object_creation(self):
        super(Thing, self).at_object_creation()
        self.db.r_desc = "%s e' qui." % myutils.capital(self.name)
        self.db.slot = None
        self.db.weight = 0.1

    def weight(self):
        """
        Returns the weight of the object.
        """
        return self.db.weight
